//
//  LLNetworkTask.m
//  LoveLove
//
//  Created by Elise on 2017/6/15.
//  Copyright © 2017年 Elvis. All rights reserved.
//

#import "LLNetworkTask.h"
#import "LLNetworkHandler.h"

@implementation LLNetworkTask


#pragma mark - Public

+ (void)GET:(NSString *)url Parameter:(id)parameter Success:(void (^)(id))SuccessResponse Failure:(void (^)(id))FailureResponse{
    [[LLNetworkHandler shareHandler] connectURL:url parameter:parameter networkType:LLNetworkRequestTypeGet Success:SuccessResponse Failure:FailureResponse];
}

+ (void)POST:(NSString *)url Parameter:(id)parameter Success:(void (^)(id))SuccessResponse Failure:(void (^)(id))FailureResponse{
    [[LLNetworkHandler shareHandler] connectURL:url parameter:parameter networkType:LLNetworkRequestTypePost Success:SuccessResponse Failure:FailureResponse];
}



@end
